<ion-view >
  <ion-header-bar class="index_head">
    <!--<button class="button button-icon icon ion-android-arrow-back" ng-click="$ionicGoBack()" style="color: #fff"></button>-->
    <div class="h1 title"> 活动详情</div>
    <button  ng-if="!ISWEB" class="button button-clear button-positive zhuce_head_btn" style="color: #fff;font-size: 14px;" ng-click="proshare()">分享</button>
  </ion-header-bar>
  <!--<ion-nav-buttons side="right">-->
  <!--<div ng-if="!ISWEB" class="ly-share-icon" ng-click="proshare()"></div>-->
  <!--</ion-nav-buttons>-->
  <ion-content class="has-header has-footer">
    <div class="ly-content">
      <div class="detail-title bg-fff">
        <div class="title">{{dto.activityTitle}}</div>
        <div class="row row-no-padding">
          <div class="col ly-biao">{{dto.userName}}发起活动</div>
          <div class="col ly-time ng-binding text-right">{{dto.createDate}}</div>
        </div>
      </div>
      <div class="time-add-human">
        <ul>
          <li><span class="ly-time-icon"></span>{{dto.activityStartDateTime | date:'yyyy-MM-dd HH:mm'}} 至 {{dto.activityEndDateTime | date:'yyyy-MM-dd HH:mm'}}</li>
          <li  class="">
            <div class="" ng-hide="dto.activityType=='2'">
              <span class="ly-add-icon"></span>{{dto.activityAddress}}
            </div>



          </li>
          <li>
            <div class="">
              <span>
                <img src="img/commimg/xianshang.png" alt="" style="width: 16px;vertical-align: middle">
            </span>{{dto.activityType=='1'&&'线下活动'||dto.activityType=='2'&&'线上活动'||''}}
            </div>
          </li>
          <li class="weui-flex" ng-hide="!dto.activityPriceDescribe">
            <span style="line-height: 25px;">活动费用名称：</span> <span style="line-height: 25px;" class="weui-flex__item">{{dto.activityPriceDescribe}}</span>
          </li>
          <li class="weui-flex">

            <span style="line-height: 25px;">活动金额：</span> <span style="line-height: 25px;" class="weui-flex__item">{{dto.activityPrice==0||!dto.activityPrice?'免费':dto.activityPrice+'元'}}</span>
          </li>
        </ul>
      </div>
      <div class="ly-detail bg-fff" style="padding: 10px 15px" ng-bind-html="dto.activityDesc"></div>
    </div>
  </ion-content>

  <div ng-if="!sphone" class="w4-xtzgDe-bottom shop-activity-bottom-button row">
    <div ng-click="delete()" class="col">
      <label>删除</label>
    </div>
    <div ng-click="modal.addShopAc()" class="col">
      <label style="background-image: url(img/edit.png)">编辑</label>
    </div>
    <div ui-sref="app.shopscheckPerson({id: dto.id})" class="col" style="color: #fff; background-color: #fb7e23;">查看报名人员</div>
  </div>
  <div ng-if="sphone" class="w4-xtzgDe-bottom shop-activity-bottom-button row">
    <div ui-sref="shopPreview({sphone:sphone, share: true})" class="col">
      <label style="background-image: url(img/shop-index.png)">店铺首页</label>
    </div>
    <div class="col">
      <a ng-click="toPhone(sphone)" style="color: #666;"><label style="background-image: url(img/phone2.png)">理财师</label></a>
    </div>
    <div ng-if="!dto.flagEnd" ng-click="showPopup()" class="col" style="color: #fff; background-color: #fc353a;">活动报名</div>
    <div ng-if="dto.flagEnd" class="col" style="color: #fff; background-color: #ccc;">活动结束</div>
  </div>
</ion-view>
